package org.openea.eap.module.obpm.model.custsql.vo;

import org.openbpm.base.core.util.StringUtil;
import org.openea.eap.module.obpm.util.custsql.JSONObjectUtil;

import java.io.Serializable;


public class SqlButtonVO
        implements Serializable {
    private static final long serialVersionUID = 23534645L;
    private String name;
    private String alias;
    private String type;
    private Integer mustSelect;
    private String clickType;
    private String icon;
    private String btncss;
    private String warnTxt;
    private String successTxt;
    private String dataChange;
    private String url;
    private String exp;
    private Integer joinBtnRight;
    private String expand;

    public String getName() {
        return this.name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getAlias() {
        return this.alias;
    }


    public void setAlias(String alias) {
        this.alias = alias;
    }


    public String getType() {
        return this.type;
    }


    public void setType(String type) {
        this.type = type;
    }


    public String getClickType() {
        if (StringUtil.isEmpty(this.clickType)) {
            return JSONObjectUtil.getValByKey("hrefSetting.openType", this.expand);
        }
        return this.clickType;
    }


    public void setClickType(String clickType) {
        this.clickType = clickType;
    }


    public String getIcon() {
        return this.icon;
    }


    public void setIcon(String icon) {
        this.icon = icon;
    }


    public String getBtncss() {
        return this.btncss;
    }


    public void setBtncss(String btncss) {
        this.btncss = btncss;
    }


    public String getWarnTxt() {
        return this.warnTxt;
    }


    public void setWarnTxt(String warnTxt) {
        this.warnTxt = warnTxt;
    }


    public String getSuccessTxt() {
        return this.successTxt;
    }


    public void setSuccessTxt(String successTxt) {
        this.successTxt = successTxt;
    }


    public String getDataChange() {
        return this.dataChange;
    }


    public void setDataChange(String dataChange) {
        this.dataChange = dataChange;
    }


    public String getUrl() {
        return this.url;
    }


    public void setUrl(String url) {
        this.url = url;
    }


    public String getExp() {
        return this.exp;
    }


    public void setExp(String exp) {
        this.exp = exp;
    }


    public Integer getMustSelect() {
        return this.mustSelect;
    }


    public void setMustSelect(Integer mustSelect) {
        this.mustSelect = mustSelect;
    }


    public Integer getJoinBtnRight() {
        return this.joinBtnRight;
    }


    public void setJoinBtnRight(Integer joinBtnRight) {
        this.joinBtnRight = joinBtnRight;
    }


    public String getExpand() {
        return this.expand;
    }


    public void setExpand(String expand) {
        this.expand = expand;
    }
}
